﻿namespace EasyAbp.Abp.PhoneNumberLogin
{
    public static class PhoneNumberLoginConsts
    {
        public static int MaxVerificationCodeLength { get; set; } = 8;

        public const string GrantType = "PhoneNumberLogin_credentials";

        public const string IdentityServerHttpClientName = "EasyAbpAbpPhoneNumberLogin";

        public const string VerificationCodeCachePrefix = "PhoneNumberLoginVerificationCode";

        public const string LoginPurposeName = "LoginByPhoneNumber";

        public const string ConfirmPurposeName = "ConfirmPhoneNumber";

        public static class TokenRequest
        {
            public const string GrantType = "grant_type";

            public const string GrantTypePhonePassword = "phone_password";

            public const string PhoneNumber = "phone_number";

            public const string PhoneSmsCode = "phone_sms_code";

            public const string Password = "password";

            public const string ClientSecret = "client_secret";

            public const string ClientId = "client_id";
        }

       

    }
}